package com.spoplar.service.impl;

import com.spoplar.dao.MerchantAlipayTradeMapper;
import com.spoplar.pojo.MerchantAlipayTrade;
import com.spoplar.service.IMerchantAlipayTradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by spoplar on 18-2-1.
 */
@Service("IMerchantAlipayService")
public class MerchantAlipayTradeServiceImpl implements IMerchantAlipayTradeService {

    @Autowired
    private MerchantAlipayTradeMapper merchantAlipayTradeMapper;

    public int pre_pay(MerchantAlipayTrade trade) {
        return merchantAlipayTradeMapper.insertSelective(trade);
    }

    public int paying(MerchantAlipayTrade trade){
        return  merchantAlipayTradeMapper.updateByPrimaryKeySelective(trade);
    }


}
